package cn.itcast.usermanage.service;

import java.util.List;

import cn.itcast.usermanage.pojo.EasyUIResult;
import cn.itcast.usermanage.pojo.User;

public interface UserService {
	
	
	public void addUsers(User user1, User user2) throws Exception ;
	
	public List<User> queryUserAll();
	/**
	 * 分页获取用户信息
	 * @param pageNum
	 * @param pageSize
	 * @return
	 */
	EasyUIResult queryEasyUIResult(Integer pageNum, Integer pageSize);

	public Boolean addUser(User user) throws Exception;

	public Boolean deleteUser(String[] ids);

	public EasyUIResult queryUserListByPage(Integer pageNum, Integer pageSize);

	public User queryUserById(Long id);

	public Boolean saveUser(User user);

	public int updateUser(User user);

	public Integer deleteUser1(Long id);

	public void deleteUsers(List<Object> ids);
	public void deleteUsers(Long[] ids);
}
